Get Task Request By ID
Method: GET
/api/v1/task-requests/{id}
Description
This endpoint retrieves the details of a specific task request based on the provided task ID. It returns the full information about the task, including any relevant metadata and status.
🔑 Authentication
This endpoint requires authentication via headers.
| Param | Type | Description |
|---|---|---|
countryCode | string | The country code associated with the request. (optional) |
userId | string | The ID of the user making the request. (optional) |
tenantId | string | The tenant ID associated with the user. (optional) |
Path Parameter
| Name | Type | Description |
|---|---|---|
id | string | The unique ID of the task. |
Response: 200 OK
A successful response returns the details of the specified task request.
Example Response:
{
"taskId": "12345",
"taskName": "Inspect Farm",
"description": "Inspection for compliance",
"status": "PENDING",
"assignedTo": "John Doe",
"createdAt": "2025-02-12T10:00:00Z",
"updatedAt": "2025-02-12T12:00:00Z",
"metadata": {
"priority": "HIGH",
"category": "INSPECTION"
}
}
LANGUAGE
CURL REQUEST
curl --request GET \
--url /api/v1/task-requests/{id} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!